import Vue from 'vue'
import VueRouter from 'vue-router'
const Main = () => import('views/Main');
const About = () => import('views/about');
const Assistance = () => import('views/assistance')
const Contact = () => import('views/contact')
const Products = () => import('views/products')
const Service = () => import('views/service')
const Sponsor = () => import('views/sponsor')
const Profile = () => import('components/content/about/profile')
const History = () => import('components/content/about/history')
const AssProfile = () => import('components/content/assistance/assProfile')
const EmploymentJob = () => import('components/content/assistance/employmentJob')
const ConProfile = () => import('components/content/contact/conProfile')
const ProductProfile = () => import('components/content/products/productProfile')
const PCSofeware = () => import('components/content/products/PCsofeware')
const MobileSofeware = () => import('components/content/products/mobileSofeware')
const ServiceProfile = () => import('components/content/service/serviceProfile')
const Solution = () => import('components/content/service/solution')
const SponsorProfile = () => import('components/content/sponsor/sponsorProfile')
const mobile = () => import('components/content/products/mobileContext')
  Vue.use(VueRouter)
export default new VueRouter({
  routes:[
    {path:'/',redirect: '/main'},
    {path:'/main',component:Main},
    {path:'/about',component:About,children:[
      {path:'/about/profile',component:Profile},
        {path:'/about/history',component:History},
      ]},
    {path:'/assistance',component:Assistance,children:[
      {path:'/assistance/assProfile',component:AssProfile},
        {path:'/assistance/employmentJob',component:EmploymentJob},
      ]},
    {path:'/contact',component:Contact,children:[{
        path:'/contact/conProfile',component:ConProfile
      }]},
    {path:'/products',component:Products,children:[
      {path:'/products/productProfile',component:ProductProfile},
        {path:'/products/PCSofeware',component:PCSofeware},
        {path:'/products/MobileSofeware',component:MobileSofeware},
        {path:'/Context/:id',component:mobile,props:true}
      ]},
    {path:'/service',component:Service,children:[
      {path:'/service/serviceProfile',component:ServiceProfile},
        {path:'/service/solution',component:Solution}
      ]},
    {path:'/products/system',redirect: '/service'},
    {path:'/sponsor',component:Sponsor,children:[{
        path:'/sponsor/sponsorProfile',component:SponsorProfile
      }]},

  ]
})
